<template>
  <el-carousel :interval="4000" type="card" height="200px">
    <el-carousel-item v-for="(item,index) in img" :key="index">
      <img :src="item" alt="">
    </el-carousel-item>
  </el-carousel>
</template>
<script>
    // import m1 from  "../assets/name1.jpg"
    // import m2 from  "../assets/name2.jpg"
    // import m3 from  "../assets/name3.jpg"
    // import m4 from  "../assets/name4.jpg"
    import m5 from  "../assets/name5.jpg"
    import m6 from  "../assets/name6.jpg"
    export default{
        data(){
            return{
                img:[m5,m6,m5,m6,m5,m6]
            }
        }
    }

</script>

<style scoped>
.el-carousel__item h3 {
  color: #475669;
  opacity: 0.75;
  line-height: 200px;
  margin: 0;
  text-align: center;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
img{
    height:100%;
    width: 100%;
}
</style>
